export function getTime(time) {
  const tmpTime = new Date(time)
  const y = tmpTime.getFullYear()
  const M = String(tmpTime.getMonth() + 1).padStart(2, '0')
  const d = String(tmpTime.getDate()).padStart(2, '0')
  const h = String(tmpTime.getHours()).padStart(2, '0')
  const m = String(tmpTime.getMinutes()).padStart(2, '0')
  const s = String(tmpTime.getSeconds()).padStart(2, '0')
  return `${y}-${M}-${d} ${h}:${m}:${s}`
}